package com.zkca.xf.ui.activity.personprotect;

import android.bluetooth.BluetoothAdapter;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.zkca.xf.Constants_SP;
import com.zkca.xf.MyApplication;
import com.zkca.xf.R;
import com.zkca.xf.base.BaseTitleActivity;
import com.zkca.xf.model.javabean.uploadbean.RequestInspect;
import com.zkca.xf.presenter.DeviceAddPresenter;
import com.zkca.xf.ui.activity.nfc.Activity_saomiao;
import com.zkca.xf.utils.LogUtil;
import com.zkca.xf.utils.SPUtil;
import com.zkca.xf.utils.TimeUtils;
import com.zkca.xf.view.DeviceAddView;
import com.zkca.xf.view.FaultJobLView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class XunjianActivity extends BaseTitleActivity  {

    @BindView(R.id.imageView_xdcx)
    ImageView imageViewXdcx;
    @BindView(R.id.rela_xdchaxun)
    RelativeLayout relaXdchaxun;
    @BindView(R.id.imageView_ttkk)
    ImageView imageViewTtkk;
    @BindView(R.id.rela_tieta)
    RelativeLayout relaTieta;
    @BindView(R.id.imageView_xjrw)
    ImageView imageViewXjrw;
    @BindView(R.id.rela_xunjian)
    RelativeLayout relaXunjian;
    @BindView(R.id.imageView_wbrw)
    ImageView imageViewWbrw;
    @BindView(R.id.rela_weibao)
    RelativeLayout relaWeibao;
    @BindView(R.id.imageView_wdlx)
    ImageView imageViewWdlx;
    @BindView(R.id.rela_lixian)
    RelativeLayout relaLixian;
    @BindView(R.id.imageView_xdtj)
    ImageView imageViewXdtj;
    @BindView(R.id.rela_xdtianjia)
    RelativeLayout relaXdtianjia;
    @BindView(R.id.imageView_gzjd)
    ImageView imageViewGzjd;
    @BindView(R.id.rela_jindu)
    RelativeLayout relaJindu;
    @BindView(R.id.imageView_khpf)
    ImageView imageViewKhpf;
    @BindView(R.id.rela_khpf)
    RelativeLayout relaKhpf;
    @BindView(R.id.imageView_ddjl)
    ImageView imageViewDdjl;
    @BindView(R.id.rela_ddjl)
    RelativeLayout relaDdjl;
    private BluetoothAdapter bluetoothAdapter ;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xunjian);
        ButterKnife.bind(this);
        initmView();
        bluetoothAdapter= BluetoothAdapter.getDefaultAdapter();

    }
    private void initmView() {
        setTitleText("消防巡检");
        setleftTextVisibility(true);
        setleftImgVisibility(true);
    }

    @OnClick({R.id.rela_xdchaxun, R.id.rela_tieta, R.id.rela_xunjian, R.id.rela_weibao, R.id.rela_lixian, R.id.rela_xdtianjia, R.id.rela_jindu, R.id.rela_khpf, R.id.rela_ddjl})
    public void onViewClicked(View view) {
        Intent intent=new Intent();
        switch (view.getId()) {

            case R.id.rela_xdchaxun:
                intent.setClass(XunjianActivity.this,DeviceListAct.class);
                startActivity(intent);
                break;
            case R.id.rela_tieta:
                intent.setClass(XunjianActivity.this,Activity_saomiao.class);
                intent.putExtra("TAG","tietakankan");
                startActivity(intent);
                break;
            case R.id.rela_xunjian:
                intent.setClass(XunjianActivity.this,TaskLActivity.class);
                startActivity(intent);
                break;
            case R.id.rela_weibao:
                intent.setClass(XunjianActivity.this,FaultJob_LActivity.class);
                startActivity(intent);
                break;
            case R.id.rela_lixian:
                break;
            case R.id.rela_xdtianjia:

                intent.setClass(XunjianActivity.this,Activity_saomiao.class);
                intent.putExtra("TAG","deviceadd");
                startActivity(intent);

                break;
            case R.id.rela_jindu:
                break;
            case R.id.rela_khpf:
                break;
            case R.id.rela_ddjl:
                intent.setClass(XunjianActivity.this,MesActivity.class);

                startActivity(intent);
                break;
        }
    }


}
